import Home from '../../views/Home.vue';

const home = [
	{
		path: '/',
		name: 'Home',
		component: Home,
		redirect: '/isPaySuccess',
		/* path: '/',
		name: 'Home',
		component: Home,
		redirect: '/Index', */
		children: [
			// 个人中心
			{
				path: 'PersonalCenter',
				name: 'PersonalCenter',
				component: resolve => require(['../../views/PersonalCenter.vue'], resolve),
			},
			// 首页
			{
				path: 'Index',
				name: 'Index',
				component: resolve => require(['../../views/index.vue'], resolve)
			},
			// 设置token
			{
				path: 'setToken',
				name: 'setToken',
				component: resolve => require(['../../views/setToken.vue'], resolve)
			},
			// 询问是否支付成功
			{
				path: 'isPaySuccess',
				name: 'isPaySuccess',
				component: resolve => require(['../../views/isPaySuccess.vue'], resolve)
			}
		]
	},

];

export default home;
